package nc.ui.arap.selectedpay;

import nc.vo.arap.selectedpay.ARAPValueObject;
public class HeaderToItemVO {
  public HeaderToItemVO() {
  }
  public static void generate(ARAPValueObject source,ARAPValueObject target)
  {
    String[] attname1=source.getAttributeNames();
    String[] attname2=target.getAttributeNames();
    for(int i=0;i<attname1.length;i++)
    {
      for(int j=0;j<attname2.length;j++)
      {
        if(attname1[i].trim().equalsIgnoreCase(attname2[j].trim()))
        {
        	if(attname1[i].equals("djbh") || attname1[i].startsWith("zyx"))
        	{
        		continue;
        	}
          target.setAttributeValue(attname1[i],source.getAttributeValue(attname1[i]));
          break;
        }
      }
    }
    target.setAttributeValue("ordercusmandoc",  source.getAttributeValue("ksbm_cl" ));
  }
}
